using System;
using System.Collections.Generic;

namespace MobileTDL
{
	public class Settings : SettingsBase
	{
		private List<DisplayFieldType> _displayFields;
		private List<string> _favorites;
		private string _lastFilename = "";
		private bool _showComments;
		private bool _showDetails;
		private SortType _sortType = SortType.Position;
		private int _uncompletePercentage = 50;

		public List<DisplayFieldType> DisplayFields
		{
			get { if (_displayFields == null) _displayFields = new List<DisplayFieldType>(); return _displayFields; }
			set { _displayFields = value; }
		}

		public List<string> Favorites
		{
			get { if (_favorites == null) _favorites = new List<string>(); return _favorites; }
			set { _favorites = value; }
		}

		public string LastFilename
		{
			get { return _lastFilename; }
			set { _lastFilename = value; }
		}

		public bool ShowComments
		{
			get { return _showComments; }
			set { _showComments = value; }
		}

		public bool ShowDetails
		{
			get { return _showDetails; }
			set { _showDetails = value; }
		}

		public SortType SortType
		{
			get { return _sortType; }
			set { _sortType = value; }
		}

		public int UncompletePercentage
		{
			get { return _uncompletePercentage; }
			set { _uncompletePercentage = value; }
		}
	}
}
